package com.m2bshop.shop.service.impl;


import com.m2bshop.shop.dao.OrderMapper;
import com.m2bshop.shop.pojo.Order;
import com.m2bshop.shop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceimpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> findAllBydzf() {
        return orderMapper.findAllBydzf();
    }

    @Override
    public List<Order> findAllBydfh() {
        return orderMapper.findAllBydfh();
    }

    @Override
    public List<Order> findAllByyfh() {
        return orderMapper.findAllByyfh();
    }

    @Override
    public List<Order> findAllByywc() {
        return orderMapper.findAllByywc();
    }

    @Override
    public List<Order> findAllByyqx() {
        return orderMapper.findAllByyqx();
    }

    @Override
    public void sendOndfh(String id) {
        orderMapper.sendOndfh(id);
    }

    @Override
    public void addTracknumb(String id, String tracknumb) {
        orderMapper.addTracknumb(id,tracknumb);
    }

    @Override
    public void cancell(String id) {
        orderMapper.cancell(id);
    }

    @Override
    public List<Order> findBytitle(String ctitle) {
        return orderMapper.findBytitle(ctitle);
    }

    @Override
    public List<Order> findAll() {
        return orderMapper.findAll();
    }
}
